import { createSlice } from '@reduxjs/toolkit'

const tabStore = createSlice({
  name: 'tab',
  initialState: {
    activeTab: '/month'
  },
  reducers: {
    changeTabAction (state, action) {
      state.activeTab = action.payload
    }
  }
})

export const { changeTabAction } = tabStore.actions
export default tabStore.reducer 